package com.maiji.cloud.service;

import com.maiji.cloud.entities.login.RecipeThumbsUpOrCollection;
import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.request.ReqMetaData;
import com.maiji.cloud.response.BaseMetaResDto;
import com.maiji.cloud.response.BaseResDto;
import com.maiji.cloud.response.login.RecipeResData;

import java.util.List;

public interface RecipeThumbsUpOrCollectionService extends IService<RecipeThumbsUpOrCollection> {

    public static final String REDISNAMESPACE = "recipeThumbsUpOrCollection";

    RecipeThumbsUpOrCollection selectOneByRedis(String goods_comment_id, String user_id, Integer type);

    Boolean isThumbsUpOrCollection(String recipe_id, String user_id, Integer type);

    BaseResDto thumbsUpRecipeById(String recipeId, Integer type, String token);

    BaseMetaResDto<List<RecipeResData>> findAllRecipeCollection(String token, ReqMetaData reqMetaData);

    BaseResDto cancelCollectionRecipes(List<String> recipeIds, String token);

}
